import {defineStore} from "pinia";

const demo = defineStore('demo', {
    state: () => ({}), actions: {
        updateState(_state) {
            this.$state = {
                ...this.$state,
                ..._state
            }
        }
    }, persist: {
        enabled: true
    }
})
export default demo